package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 房间详情对象 tb_room_info
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class TbRoomInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联的出租屋id */
    @Excel(name = "关联的出租屋id")
    private Long roomId;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkinDate;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    public void setCheckinDate(Date checkinDate) 
    {
        this.checkinDate = checkinDate;
    }

    public Date getCheckinDate() 
    {
        return checkinDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("stock", getStock())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("checkinDate", getCheckinDate())
            .toString();
    }
}
